package FactoryMethodPattern;

/**
 * Created by HMF on 2021/06/15 12:11
 */
public class Main {
    public static void main(String[] args) {
        Factory factory = new ConcreteFactory();
        Product product = factory.createProduct(ConcreteProduct1.class);
        product.method1();

        // 控制台输出
//        我是具体产品类 1
    }
}
